* {
    padding: 0;
    margin: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    .head {
        background-color: #fdde4a;
        width: 340px;
        display: flex;
        justify-content: center;

        input {
            margin-top: 24px;
            width: 300px;
            border-radius: 10px;
            height: 30px;
            line-height: 30px;
            font-size: 12px;
            padding-left: 20px;
            border: none;
        }
    }

    .nav {
        background-color: #fdde4a;
        width: 340px;
        display: flex;
        justify-content: center;
        .wrap1 {
            width: 340px;
            height: 50px;
            line-height: 50px;
            font-size: 14px;
            display: flex;
            justify-content: space-between;

            .recommend {
                width: 60px;
            }

            .bannerFont {
                width: 250px;
                height: 50px;
                overflow: hidden;

                .swiper-wrapper1 {
                    width: 1000px;
                    height: 50px;
                    line-height: 50px;

                    div {
                        text-align: center;
                        font-size: 12px;
                        color: black;
                        background: #fdde4a;
                        float: left;
                        margin-right: 15px;
                        /* Center slide text vertically */
                        display: -webkit-box;
                        display: -ms-flexbox;
                        display: -webkit-flex;
                        display: flex;
                        -webkit-box-pack: center;
                        -ms-flex-pack: center;
                        -webkit-justify-content: center;
                        justify-content: center;
                        -webkit-box-align: center;
                        -ms-flex-align: center;
                        -webkit-align-items: center;
                        align-items: center;
                    }
                }
            }

            .more {
                width: 22px;
                margin-top: 4px;
                img {
                    width: 22px;
                    height: 22px;
                }
            }
        }
    }

    .seaction {
        display: flex;
        justify-content: center;
        padding: 20px 0;

        .wrap2 {
            width: 340px;
            font-size: 12px;
            display: flex;
            justify-content: space-between;

            div {
                width: 75px;
                height: 72px;
                position: relative;

                img {
                    width: 48px;
                    height: 48px;
                    // margin-left: 10px;
                }

                p {
                    width: 77px;
                }

                span {
                    position: absolute;
                    background-color: crimson;
                    color: white;
                    border-radius: 5px;
                    padding: 0 3px;
                    left: 0;
                    top: 0
                }
            }
        }
    }

    .banner {
        display: flex;
        justify-content: center;
        height: 280px;
padding-bottom: 30px;
        .wrap3 {
            width: 340px;
            position: relative;

            .pictureBG {
                img {
                    width: 340px;
                    height: 85px;
                    border-radius: 5px;
                }
            }

            .bannerMain {
                background-color: yellow;
                width: 340px;
                height: 250px;
                position: absolute;
                left: 0;
                top: 40px;
                border-radius: 10px;
                overflow: hidden;

                .swiper-wrapper {

                    .swiper-slide {
                        text-align: center;
                        font-size: 18px;
                        background: #fff;

                        /* Center slide text vertically */
                        display: -webkit-box;
                        display: -ms-flexbox;
                        display: -webkit-flex;
                        display: flex;
                        -webkit-box-pack: center;
                        -ms-flex-pack: center;
                        -webkit-justify-content: center;
                        justify-content: center;
                        -webkit-box-align: center;
                        -ms-flex-align: center;
                        -webkit-align-items: center;
                        align-items: center;

                        img {
                            width: 340px;
                            height: 250px;
                        }
                    }

                }
            }
        }
    }

    .main {
        display: flex;
        justify-content: center;
        padding-bottom: 50px;
        .wrap5 {
            width: 340px;
            position: relative;

            img {
                width: 340px;
                height: 85px;
                border-radius: 5px;
            }

            .mainHeard {
                position: absolute;
                left: 0;
                top: 60px;
                border-radius: 10px;
                width: 340px;
                display: flex;
                flex-direction: column;
                justify-content: start;

                .commodity {
                    position: relative;
                    display: flex;
                    justify-content: space-between;

                    .productImg {
                        .imgBig {
                            width: 132px;
                            height: 132px;
                        }

                        .num {
                            position: absolute;
                            left: 0;
                            top: 0;
                            width: 24px;
                            height: 23px;
                            border-radius: 0 0 5px 0;
                        }
                    }

                    .productDisc {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        width: 200px;

                        .titleName {
                            font-size: 16px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 1;
                            overflow: hidden;

                            span {
                                background-color: rosybrown;
                                color: red;
                                font-size: 12px;

                            }
                        }

                        .commodityTip {
                            img {
                                width: 18px;
                                height: 8px;
                                display: block;
                                margin-left: 4px;
                            }

                            p {
                                width: 138px;
                                height: 14px;
                                font-size: 12px;
                                line-height: 14px;
                                text-align: center;
                                background: linear-gradient(to right, #fe5704, #fcc080);
                                border-radius: 7px;
                            }
                        }

                        .hot {
                            font-size: 12px;
                            color: sandybrown;
                        }

                        .commodityPrice {
                            font-size: 12px;
                            color: red;

                            .theirPrice {
                                color: red;
                                font-size: 24px;
                                font-weight: 700;
                            }

                            .realPrice {
                                color: gray;
                                text-decoration: line-through;
                            }
                        }

                        .coupon {
                            font-size: 12px;
                            display: flex;
                            justify-content: space-between;

                            .ticket {
                                border: 1px solid rgb(224, 69, 69);
                                color: rgb(224, 69, 69);
                                border-radius: 3px;
                            }

                            .monthlySales {
                                color: gray;
                            }
                        }

                    }
                }
            }
        }
    }
    
    .box {
        position: fixed;
        right: 40px;
        bottom: 50px;
        height: 20px;
        width: 30px;
        text-align: center;
        padding-top: 20px;
        background-color: lightblue;
        border-radius: 20%;
        overflow: hidden;
    }

    .box:hover:before {
        top: 50%
    }

    .box:hover .box-in {
        visibility: hidden;
    }

    .box:before {
        position: absolute;
        top: -50%;
        left: 50%;
        transform: translate(-50%, -50%);
        content: '回到顶部';
        width: 40px;
        color: peru;
        font-weight: bold;
    }

    .box-in {
        visibility: visible;
        display: inline-block;
        height: 20px;
        width: 20px;
        border: 3px solid black;
        border-color: white transparent transparent white;
        transform: rotate(45deg);
    }
    .footer {
            height: 50px;
            width: 340px;
            position: fixed;
            bottom: 0;
            left: 50%;
            margin-left: -170px;
            display: flex;
            justify-content: space-around;
            background-color: #fdde4a;
        div{display: flex;
        flex-direction: column;
        .iconfont{
            font-size: 30px;
        }
        }
    }
} 
